add deconstructor to Node