use for loop for convenience or writing results to file immediate after available