for Mat.Dump safety