update loop count to 1000