how does a stopcock work