hashmap seems to be working