fixed scanner input