update inventory file