changed to destroy the object when it's dead