changed loop conditions

just made it consistent with the style that was used on the alaska
scraper