actually made the loop so that it would loop to the end of the Scans