run for 1000 times