moving fft to swift