.refactor the dictionary module