this reduces the number of times the inventory lookup is called by half.