hashmap bugged version