fixing global variable
Added search engine