NN: new section how to approximately calculate the gradients