changed format of formula for gradient