detect localization in initialization