linkedlist for popping and polling