function spectrum_ls() didnt work for me