debugging matrix type