changed to resource_class