calcError of NN added