The connection between water quality and water quantity