added each loop not working yet