fixing some of the inventory stuff