add pairwise index in psi