clean up debug code