removed read_mat