refactored search.teams to teams