On steep terrain they built steps to dissipate the water's energy and counter erosion. At high altitudes they paved the way with local stone to protect the surface from ice and snowmelt, and when they needed supporting walls they left holes for the water to drain.