changed inventory initialization