doing pairwiseCombine