cleanup traverse