use correct spectrometer code.