matrix debug