implemented mm_check