modify the definition of class to make FFTW work