fixed matid formatting