add minor function on inventory