added inventory function