working on A2 delete old node, insert new node