updates to loop