fixing pairwise comp bugs