measure before opt