updating filter code for map graying