cleanup stack a bit