added a for loop that breaks at ten