New way to prevent serious damage from heavy rainfall