added ability to have different groups