change grouping API