implementing search engine