fix formats of formula