change id to tree id