add item extraction code