make some functions of the inventory static and use them where applicable