preparing localization