better dictionary indexing