change the loop to be 5000