replaced get_teams with templating