scanselect.cpp