Understanding the role of the three dams