hashmap + array

fix the hash map and init arrays