validator added, changed automat to automaton