add an iteration cap