small change to localization detection