now loops through each team