added basic inventory functions