complete some add inventory code