removed debug printouts from scanner