Updating the inventory file