modified debugging