changed pairwise to comparisons