adding groups in schedule.detail