parse matrix, but failed currently