added fft ranges and cleaned up