water-resistant mechanism