brand new bubbles grouping algorithm and design