merge code of search engine