removed redundant old inventory code