added 2 more inventory functions