clear method changed to destroy