added search engine functionality