linked list is kind of working