cantor improved (list comprehensions)