changed to shuffle grouping instead of strem id based grouping to bechmark performance.