iterative, keep track of last node visited