updated destroy method