continuing debug... changed for.each