updated spectra calc