substitute back reference