scan input