update on linked list