update mmm.cpp