clean up $item_start/end