Updated destructor to private member