modularized search and comparison