type localization