changed matrixes to matrices