copy data1 to data2