make small for loops changes