changed iFFT to a working one