deal with single element groups by making an array in template