changes to time the scanner and time the execution together