fixed nested list comprehensions