moving destructor to cxx file