resetting array keys, updating field names for categories