inlined ChavTree.