implemented destroy method