dft_loop.cpp is updated