Inventory rewrite