initial version of search