device that controls flow of liquid