added more inventory functions