Updated tree_creation