set iteration flag for demo