The function of chlorophyll is to