How to curb flooding