replaced inventories with lists