improved format of group by activity/subject