changes in matrix print