implement destroy method