small change in the MEX interface