what is want is to get my $i out of the for loop into my foreach loop so i can call a specific variable each time the loops ends