linked lists with some issues that I dont understand