changed hashmap to concurrency