add read matrix