modified Neural Network