trying to add derivativeMMFunc member in MMFunc