add destroy function
add destroy method