for loop edit