reworked NN