foreach trouble