update to inventory check