connecting the water flow to valves