some improvements in adding dictionaries