completing search and compare