got Matrix to lex