add debugging code2