check in the draft implementation of inventory