get rid of dict comprehension