end of scanner