explain localizedFlow method