beginning of search