added inventory tracking