added pairwise searching to interface