Up to fourier transform done