update upstream rbtree