added hashmap generation functions