keeps only case_ids instead of cases