using hashmap