working on spectrum analyser