added a function to find a wavelength