added loop removal functions for dfa->regex