d / different ways to get the gradient lip