convert list comprehension to generator expression