dictionary indexing modified