update calculation of outErr