change the bubble convert function