fixed newNode and deleteNode