finishing linked list