corrected various NN computations