modifications on spectra extractor