modify copy to deepcopy