replaced one m with an inv