adjust hashmap creation