transposed th in for loop
Merge pull request #2 from kristofferh/for-loop

transposed th in for loop