adds methods in preparation for writing fft