debug code for hodoscope