refactor add to team