added cloning the object type