updated spectrometer task