set private foreach variables