changed MatType return value