implement copy output