add code for swap nodes in pairs