updates repeat control structure