added the destroy method