made changes to refreshInventory methods