implemented dynamic choice groups.