setting return params to error values