added dfa feature