got decoder sort of working for power spectrums