change copy_arg to deep_copy to be consistent with rest of code