update inventory