changed how many times the matrix was printed