Update mm.c: now works