with ErrorStat object