code to conduct ground truth search