What waste product of photosynthesis is released to the environment