make cbtree a template