tree generation works with updated addSubtreeV2