Pair_update

pair update routine checked for now.