implemented group strategy for M