modifies loop in stmt