Updating the sub-tree