added a destroy method