changed layout to work with up to 12 groupers