replaced nag routines with fftw ones