finished getInventory