added localization intialization function