search and scan almost seperated