update on linked list + template