working on converting category labels to IDs