readded the fft analysis