fixing formulas