initial version of the search