refactoring tree structure
counting children nodes
reverting to original treeData