added falling times
implemented fft