iterator cleanup