form if...elif to a dict access