inventory logic fail