add number of valves constant