update nodes