chaning bounds on for loop