fix option and repetition
fix eliminate options and repetitions visitor
add test