finish the mm_init()