replace crazy lowerMap generation with dict comprehensions