modified linked list