adding inventory check
removing log line