changes for making RACE as object instead of string