working nb-tree ignoring recursion