fixed raceCatSet function