modify doubly linked list