When photosynthesis occurs____

, light energy is converted into chemical energy in the form of glucose and oxygen is released as a waste product.