error calculation changed