correcting formulas