linked list iterative changed