restart from scratch
add CategoricalFactor (tested)