new function: search()