limit loop for puttin iv into struct