inventory problem modified