finished person search logic