Simplify matrix a bit