updated loops_ex