added inventory utils