handling for all groups