get dict by key helper