returns the node at the beginning of the loop