fixed styling for matrix class