localization method improved