mex edit