almost finish the matrix view