using alternating pop and pop(2) approach

has problems with thousands still