each treeNode as obj with type and el