change in gradients computation