refactoring and furter development of Dictionary methods