Correcting placement of code, shouldn’t be in the for loop.