update swap nodes in pairs post