simplication, faster, and better regex