update for ... loop