added each loop