display after 1000 iterations