valve operation principles