created hashmap for ids.