added ifelse for team names