major changes to the inventory module