how to do getInventory hooking up