Chlorophyll is important in photosynthesis because