prepare to add generate_tree function
update lft rgt nubumers