Changed a dictionary to a list