logging + destroy method