add pairwise correction