changed the default values for spectra function