update formulas