commented out bad logic block in the download loop