type becomes mtype