fix parts of comm.pairwise