did some work on the linked list