found error in destroy method