revised the union and split opertions for bubbles.