added generic to hashmap