moved destroy method