respect the foreach loop