TreeBuilder: set parents