bug fix

translate to regular expression