create the team logic