create linked list of tokens