added small bugs formulas