added scan_sel back in