for spectroscopy