normalized the Mi so that it now goes from 0->1