linkedList edgeCase edit