doing matrixes