For most smartphone users, submerging their electronic pride and joy in water would inspire much cursing and a trip to the mobile store to pick up a replacement—nevermind an extended vacation from social media. Well Sony solved that problem by making its Xperia Z1S fully waterproof and is now introducing a suite of new apps to make dunking your device fun.

Sony partnered with app developers Motim and SoftFacade, along with ad agency Wieden+Kennedy, to develop a new technology that detects when the phone is submerged in water ... and turns that would-be moment of terror into a game. Like a submarine’s sonar, the innovative water-detection technology is based on sound. The Xperia Z emits an inaudible ultrasonic tone and then listens. Because sound travels differently in air than in water, the phone knows when it is submerged.

Sure, the waterproof feature helps avoid smartphone disaster, but Sony is making it fun too, thanks to six new apps that integrate the water-detection function. Take Goldie, the pet goldfish who, like all fish, enjoys his time in the water. Open the app under normal conditions and Goldie flops around like, well, a fish out of water. Drop your Sony Xperia into an aquarium and watch Goldie perk up, swimming circles like a happy fish should.