edited residual error lines