update rbtree