update repeat loop to start with 1