commented out clearing of error_state