copy input and copy output added