Update scanMain.cpp