refactoring inventory directly into inventory_pool