grouping the api