working on matlab mex files