ranges initialized prior to loop