update linkedlist