improved balloon mode switching