added translate function in fft