new search func of getting data