didn't think of doing the regex this way