much work on inventory stuff