fix in calculation