AI destructor added set-erase