completed copy function
added paste stub function