wrapped print statements for ungrouped categories with a conditional to check for ungrouped categories