combine remove subtree and remove reference