dup-and-replace