changed mincount in get_matrix() to default 1