print every 10 iterations