fixed matrix print out