better matrix
matrix is now actually solved