now map filtering works