working on main search engine