handle r (resource) type