using strings with the dic and not index with list

index of list might change when adding new items, while the string is always the same