simplified code for live fft method