safety valve in the middle stages