auto select exam and grouping