modified localization