correctly check for part inventory