adding regex trace