update patch to make subcategory optional