edits to mm.c