update LinkedList