modify method removeAllNode