changed a call to list->removeNode() to this->pop()