updates to LinkedList and main