modify the math formula