update inv prototype