added a working destroy method