update dg_nml_loop