updating value manager to use deepcopy instead of copy