changed the inside of the for loop