typing errors in scanner