solve debugging code