added right error_class