some work on the hashmap