How to protect water quality