garbage collection, removing old nodes