implementing bubble translation