localization function init