modified neural network