adding callback for destroy method