Localization function changed to filter