treeIterator corrected