some tentative work on the tree structures