changed link current to point to root so that we can iterated through the linked list