added error_type