Should this list be constructed outside the for loop?