altered loop starts at 2 to 1000000