retry how many matrices