added gradients