modify the search fuc