updated deepcopy calls