changed resourceCategory to resourceType