changed structure of copy to make it clone the shape being copied