fixed mm.c so it prints the data for output properly.