destroy method

added the destroy method