add 'clear' argument to AddGrouping