add item persistent code