-refactored PIL data and FFT