added matrix print out format