changed mm_end