changed the import to require LinkedList only instead of the whole module