changed inventory to i