making scanner work as intended