got rid of the compiler warning and put in a console message when scanning is finished