converted from list to dict