regex update
fix errors in #2