convert the dict to a list