foreach and association setting