for the linkedlist