finished remove for root node case