updated NeuralNetwork