added stft functionality