spent the whole day fighting discrete fourier transforms