adds subgrouping filtering