replaced .deepCopy() with .copy()