small change for preventing removing the root node