public destroy method