change loop to allow for new additions to the list