inventory update working