new parameters added to ANN: activation function and gradient function