update loop format