update addTeam function