update for randomized bubbles and trap bubbles