complete the destructor