remove unneeded iterator variable