replacing TypedClone with typedClone