updated Added inventory cehcking