detect linked list