final main search