cleaning up debug code