trying async for loop

moved statement 3 into download callback