liu jing's output to matrix read input