update to loop