fixes path variable for iteration and tuples in for loop