add method to deallocate active nodes as a new commit