inventory works