added grouping of attendances