improves the gradient.