Can you move this up the first for loop. Is there a need to make a separate list if you're going to iterate over them again later?