choose model type and field to group by