finished the localization