changed map key from cid to seq index to preserve order of Categories in List