simplification on error status