only recalculate when we encounter a pop situation
clearer test msg
fix two bugs in util
stashing