post for error and residual