modified hashmap for inventory