tie up loose ends to make emptying a list work correctly