improved localization