Modified multidistmat