updated HashMap to ConcurrentHashMap