debugging scan_a_page