bringing back peak detection in spectrum analyzer