get_spectral_func implemented