code from the matrix