change dict to list