recursive tree, intermediate