add indexes to a.cases