modify time
swap nodes in pairs