localization method