edit for loop