replace all init_tree_struct with init_struct