create full copy function for buggy