wrong iterator variable