from list to hashmap