removes Mdist to close #2