added a alternate version of scanner