use switch based on enum
distribution per group