modification foreach