update the formula