printing matrix stuff