small changes to how inventory class works