---corrected error of taking time windows AFTER changing to frequency
space