changed the destroy method