update mmix.mt function