initialization of localization