why do you need deep copy here?