accurate error processing