updated linkedlist