changed HashMap to ConcurrentHashMap

HashMaps are not thread-safe, however the maps are potentially modified
and read concurrently.