fixing destroy method