modify the search function, add return value