preparing for localization