update mi to factory