fix opening valve
cleaning code