update search to be smarter