adding scanning for digits