construct more compact dictionaries