add valves in pipeline