RBT: simplify implementation