implemented deletion of NN