added createTeam to functions