adding more output to detect the problem