scanner logic implemented