changed the loop to 10