deguging and more debugging