Study shows how to save waterways