middle of residual analysis