filtering the map