changed debugger code