changed table() to a dict comprehension