fixing inventory stuff