working on fourier stuff