added function for team search