added error-state