grouping up flags