added function to search friends