finalize the item matching