improve the tree structure code by reading the generative design.