using calc_grouping in clipping