modified copy.t