refactoring the localization logic get rid of most of the duplication.
removing methof dup