for preventing water-hammer