used non standard for each loop