changed top of loop to 2_000_000, from 10 (set for testing)