fixed the main search