popTail implementation