TOOLS: deepcopy function added