update the m