try to work with matrixes