change the iteration end condition in clocks