further updated the debugging