Change ForEach code style