updated LinkedList without struct