fixed sampling wavelength issue