finished adding FFT into master loop