add debugging code2
add debugging code