new function, search()