refactor. add dictionary setting