update dft_loop.cpp app