leverage dict constructor and list comprehensions