updates made to loop