traversing the matrix