monitor residual error