replace s///r with copy