add: pairwise weight method