changed debugging for regexes