added destroy method