added removeAllNodes()