some changes in the debug functions
change in debug function