main localization