gradients now outputs units