changed to wavelength and period