renamed objectLock to inventoryLock