change RBTree code