Is there a reason for iterating over a list comprehension here?