some modifications to the bubble loop