adding to the loop